<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
 * wap活动地址管理
 */
class My_Controller extends CI_Controller
{
    static $datas = array();
    public function __construct()
    {
        parent::__construct();
        $this->load->library('session');
        $this->load->model('common', 'common');
        self::$datas['base_url'] = config_item('base_url');
        $this->load->database();
        $uid = $this->session->userdata('user_id');
        if($uid == 1)
        {
          self::$datas['now_admin'] = 1;
        }else{
          self::$datas['now_admin'] = '';  
        }

    }


}